<%@ Page Language="C#" MasterPageFile="~/ContosoHealth.master" AutoEventWireup="true"
    CodeFile="ViewPatientDetails.aspx.cs" Inherits="ViewPatientDetails" Title="Contoso Health - View Patient Details" %>

<%@ Register Src="Controls/PatientBanner.ascx" TagName="PatientBanner" TagPrefix="uc4" %>

<%@ Register Src="Controls/ViewMedication.ascx" TagName="ViewMedication" TagPrefix="uc3" %>

<%@ Register Src="Controls/ViewLabResults.ascx" TagName="ViewLabResults" TagPrefix="uc2" %>
<%@ Register Src="~/Controls/ViewCCR.ascx" TagName="ViewCCR1" TagPrefix="uc1" %>
<%@ Register Src="~/Controls/ViewCCD.ascx" TagName="ViewCCD1" TagPrefix="uc1" %>
<asp:Content ID="Content1" ContentPlaceHolderID="MainContentPlaceHolder" runat="Server">
  <script language="javascript" type="text/javascript">
     var ContosoStyle = document.createStyleSheet();    
     ContosoStyle.addRule(".ContentPlaceHolderInnerTD", "height:" + (screen.availHeight-430) + "px;");   
     ContosoStyle.addRule(".ContentPlaceHolderDivCCDXml", "height:" + (screen.availHeight-630) + "px;");   
     
     ContosoStyle.addRule(".ContentPlaceHolderInnerPanel", "height:" + (screen.availHeight-400) + "px; border-color:#696969; border-style:solid; border-width:2px;");
    </script>
    <div class="ContentPlaceHolderInner" style="text-align: left; vertical-align: top;">
        <table border="0" cellpadding="0" cellspacing="0" style="width: 100%">
            <tr>
                <td valign="top" style="height: 117px">
                    <table style="width: 100%;" border="0" cellpadding="0" cellspacing="0">
                        <tr align="left" valign="top">
                            <td align="right" style="height: 15px">
                                <uc4:PatientBanner ID="PatientBanner1" runat="server" />
                            </td>
                        </tr>
                    </table>
                </td>
            </tr>
            <tr>
            <td></td>
            </tr>
            <tr>
                <td valign="top">
                    <table style="width: 100%" class="ContentPlaceHolderInnerTD" border="0" cellpadding="0"
                        cellspacing="0">
                        <tr>
                            <td valign="top" style="width: 150px" align="right" class="ViewDetailsLeftMenu">
                                <table border="0" cellpadding="0" cellspacing="0" style="width: 100%">
                                    <tr>
                                        <td align="center" valign="middle" class="InOutBound">
                                            Inbound
                                        </td>
                                    </tr>
                                    <tr>
                                        <td align="center" valign="middle" class="ViewDetailsLeftMenuoutTD">
                                            <asp:Panel ID="PanelMedication" runat="server" Width="100%" CssClass="ViewDetailsLeftMenuTD">
                                                <asp:LinkButton ID="LinkButtonMedication" runat="server" CssClass="HyperLink" OnClick="LinkButtonMedication_Click"
                                                    Font-Underline="False">View Medications</asp:LinkButton>
                                            </asp:Panel>
                                        </td>
                                    </tr>
                                    <tr>
                                        <td align="center" valign="middle" class="InOutBound">
                                            Outbound
                                        </td>
                                    </tr>
                                    <tr>
                                        <td align="center" valign="middle" class="ViewDetailsLeftMenuoutTD">
                                            <asp:Panel ID="PanelCCR" runat="server" Width="100%" CssClass="ViewDetailsLeftMenuTDActive">
                                                <asp:LinkButton ID="LinkButtonCCR" runat="server" CssClass="HyperLinkActive" OnClick="LinkButtonCCRs_Click"
                                                    Font-Underline="False">View CCRs</asp:LinkButton>
                                            </asp:Panel>
                                        </td>
                                    </tr>
                                    <tr>
                                        <td align="center" valign="middle" class="ViewDetailsLeftMenuoutTD">
                                            <asp:Panel ID="PanelCCD" runat="server" Width="100%" CssClass="ViewDetailsLeftMenuTD">
                                                <asp:LinkButton ID="LinkButtonCCD" runat="server" CssClass="HyperLink" OnClick="LinkButtonCCDs_Click"
                                                    Font-Underline="False">View CCDs</asp:LinkButton>
                                            </asp:Panel>
                                        </td>
                                    </tr>
                                    <tr>
                                        <td align="center" valign="middle" class="ViewDetailsLeftMenuoutTD">
                                            <asp:Panel ID="PanelLabTest" runat="server" Width="100%" CssClass="ViewDetailsLeftMenuTD">
                                                <asp:LinkButton ID="LinkButtonLabTest" runat="server" CssClass="HyperLink" OnClick="LinkButtonLabTest_Click"
                                                    Font-Underline="False">View Lab Tests</asp:LinkButton>
                                            </asp:Panel>
                                        </td>
                                    </tr>
                                    <tr>
                                        <td align="left">
                                            &nbsp;&nbsp;
                                        </td>
                                    </tr>
                                </table>
                            </td>
                            <td style="width: 20px;">
                            </td>
                            <td align="left" valign="top">
                                <asp:MultiView ID="MultiView1" runat="server">
                                    <asp:View ID="ViewMedication" runat="server">
                                        <uc3:ViewMedication id="ViewMedication1" runat="server">
                                        </uc3:ViewMedication>
                                        </asp:View>
                                    <asp:View ID="ViewCCR" runat="server">
                                        <uc1:ViewCCR1 ID="ViewCCR1" runat="server" />
                                    </asp:View>
                                    <asp:View ID="ViewCCD" runat="server">
                                        <uc1:ViewCCD1 ID="ViewCCD1" runat="server" />
                                    </asp:View>
                                    <asp:View ID="ViewLabResult" runat="server">
                                        <uc2:ViewLabResults ID="ViewLabResults1" runat="server"></uc2:ViewLabResults>
                                    </asp:View>
                                </asp:MultiView>
                            </td>
                        </tr>
                    </table>
                </td>
            </tr>
        </table>
    </div>
</asp:Content>
